package models;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;



@SuppressWarnings("serial")
@Entity
@Table(name="sys_user")
public class User extends IdEntity{
	
	private String loginname;
	private String username;
	private String password;
	private String ip;
	
	private String phone;
	private String mobile;
	
	private Integer position;
	private int ifDisabled;
	private String cardId;
	@ManyToOne(fetch = FetchType.EAGER)
	private Orgn orgn;
	
	@ManyToOne(fetch = FetchType.EAGER)
	private Zone zone;
	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public Orgn getOrgn() {
		return orgn;
	}
	public void setOrgn(Orgn orgn) {
		this.orgn = orgn;
	}
	public Zone getZone() {
		return zone;
	}
	public void setZone(Zone zone) {
		this.zone = zone;
	}
	public Integer getPosition() {
		return position;
	}
	public void setPosition(Integer position) {
		this.position = position;
	}
	public String getLoginname() {
		return loginname;
	}
	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getCardId() {
		return cardId;
	}
	public void setCardId(String cardId) {
		this.cardId = cardId;
	}
	public int getIfDisabled() {
		return ifDisabled;
	}
	public void setIfDisabled(int ifDisabled) {
		this.ifDisabled = ifDisabled;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
}
